package com.hank.speedkill.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hank.speedkill.result.CodeMsg;
import com.hank.speedkill.result.Result;

@Controller
public class DemoController {
	
	@RequestMapping("/")
	@ResponseBody
	public Result hello(){
		return Result.success("ok");
	}
	
	@RequestMapping("/testServer")
	@ResponseBody
	public Result normalError(){
		return Result.error(CodeMsg.SERVICE_ERROE);
	}
}
